package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.dto.DishDto;

import java.util.List;

/**
 * dish业务层
 */
public interface DishService extends IService<Dish> {

    public void saveDish(DishDto dishDto);
    public Page<DishDto> listDish(Integer page, Integer pageSize, String name);

    DishDto getDishById(Long id);
    void updateDish(DishDto dishDto);
    void deleteDish(List<Long> ids);
    void changeStatus(Integer status,List<Long> ids);
}
